package com.moli.iov.common.mongodb.constants;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

/**
 *
 * Mongodb constants for iov Mongo clients.
 *
 * @author OAK
 * @version  3.0.1
 * @since 2019/12/13 10:12:00 PM.
 *
 */
public interface MongoConstant {

    /**
     * The mongodb auto configuration package prefix.
     */
    static final String AUTO_PREFIX = "spring.iov.mongodb";

    /**
     * The MongoClient host and port split separator.
     */
    static final String SEPARATOR = ":";

    /**
     * The MongoClient uris separator for example eg
     * <p> mongodb://localhost:27017 <br/>
     * mongodb://host1:27017,host2:27017,host3:27017 <br/>
     * mongodb://host1:27017,host2:27017,host3:27017/?replicaSet=myReplicaSet.
     */
    static final String URI_SEPARATOR = "mongodb://";

    /**
     * The MongoClient multiple host and port concat separator for example eg host1:27017,host2:27017,host3:27017.
     */
    static final String CONCAT_SEPARATOR = ",";

}
